﻿using System;
using System.Collections.Generic;
using System.Text;

namespace dotnet2cache.Abstractions.Serialization
{
    public  interface IDataSerializer
    {

        byte[] BinarySerialize<T>(T value);


        T BinaryDeserialize<T>(byte[] bytes);


        string Serialize<T>(T value);


        T Deserialize<T>(string str);


    }
}
